import matplotlib.pyplot as plt
names=["lucy","Jack Chen","Cindy"]
activities=["eating","sleeping","playing"]
eating=[4,2,3]
sleeping=[12,9,8]
playing=[8,13,13]
colors=['r','g','b']
plt.stackplot(names,eating,sleeping,playing,colors=colors,labels=activities)
plt.title("One Day")
plt.xlabel("names")
plt.ylabel("hours")
plt.legend()
plt.show()
